html,
body {
  margin: 0;
  padding: 0;
  font-family: PingFangSC-Medium;
  overflow-x: hidden;
}
* {
  box-sizing: border-box;
}
#app {
  width: 100vw;
  height: 100vh;
  overflow: auto;
}

.page-loading,
.page-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute !important;
  left: 0;
  top: 0;
}

.xgplayer .xgplayer-controls {
  visibility: visible !important;
  opacity: 1 !important;
}

.xgplayer .xg-pos {
  left: 0;
  right: 0;
}

.xgplayer .xgplayer-progress-played {
  background: linear-gradient(-90deg, #3266e6 0%, #3266e6 100%);
}

.xgplayer-mobile {
  .xgplayer-controls {
    height: 40px;
  }
  .flex-controls .xg-inner-controls {
    bottom: 0 !important;

    .xg-left-grid {
      position: absolute;
      left: 5px;
      top: 0;
    }
  }

  .flex-controls .xg-center-grid {
    position: absolute;
    width: 100%;
    justify-content: unset;

    .xg-time-left {
      margin-left: 30px;
      margin-right: 0;
    }

    .xg-time-left::after {
      content: '/';
      padding: 0 3px;
      position: relative;
      bottom: 1px;
    }

    .xg-time-right {
      margin-left: 0;
    }

    .xgplayer-progress {
      position: absolute;
      width: 100%;
      top: 0;
      height: auto;

      .xgplayer-progress-btn {
        display: none;
      }
    }
  }
}

.xgplayer-start:not(.interact) {
  color: rgba(255, 255, 255, 1);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.5);
  width: 55px !important;
  height: 55px !important;

  path {
    fill: rgba(255, 255, 255, 1);
  }
}

.popup-title {
  color: #34495e;
  line-height: 1;
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 15px;
}

.van-tabbar {
  height: auto !important;
  padding-top: 2vw !important;
  padding-bottom: 2vw !important;
}

.materials {
  background: #fff;
  font-weight: 400;
  padding: 0 3.6vw;
  .material {
    padding: 3.6vw 0;
    display: flex;
    border-bottom: 1px solid #f4f4f4;
    .body {
      flex: 1;
      padding-right: 3.6vw;

      .title {
        font-family: PingFangSC-Regular;
        font-size: 4vw;
        color: #333333;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 10vw;
      }

      .content {
        margin-top: 2vw;
        font-family: PingFangSC-Regular;
        font-size: 3.2vw;
        color: rgba(51, 51, 51, 0.45);
        letter-spacing: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 8vw;
      }

      .footer {
        display: flex;
        align-items: center;
        margin-top: 3vw;

        .category-name {
          border: 1px solid #ccb29e;
          font-family: PingFangSC-Regular;
          border-radius: 2px;
          padding: 0.8vw;
          font-size: 2.5vw;
          color: #ccb29e;
          line-height: 1;
        }

        .count {
          display: flex;
          align-items: center;
          font-family: PingFangSC-Light;
          font-size: 2.5vw;
          color: #9c9b9b;
          font-weight: 200;
          margin-left: 4vw;
          img {
            display: block;
            width: 3.2vw;
            margin-right: 0.8vw;
          }
        }
      }
    }
    .image {
      flex-shrink: 0;
      width: 24vw;
      height: 30vw;
      display: flex;
      align-items: center;
      justify-content: center;
      img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        border-radius: 4px;
      }
    }
  }
}
